﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Phones.DataLayer
{
    public abstract class BaseRepository
    {
        private PhonesEntities _context;
        
        protected BaseRepository()
        {
            _context = Database.ReadOnlyContext;
        }

        protected BaseRepository(PhonesEntities context)
        {
            _context = context;
        }

        protected PhonesEntities Context
        {
            get { return _context; }
        }
    }
}
